﻿using System.Threading.Tasks;
using Systematize.Domain.Services;
using Moq;
using NUnit.Framework;
using System.Web.Mvc;
using Systematize.Controllers;
using Systematize.Domain.Data;
using Systematize.Domain.Entities;

namespace Systematize.Tests.Controllers
{
    [TestFixture]
    public class HomeControllerTest
    {
        [Test]
        public void Index()
        {
            // Arrange
            var bookService = new Mock<ILibraryItemService<Book>>();
            var controller = new HomeController(bookService.Object);

            // Act
            ViewResult result = controller.Index() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
    }
}
